// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Data/MissionStruct.h"
#include "TargetsManager.generated.h"

class UBillboardComponent;

UCLASS()
class MISCELLANEOUSPROJECT_API ATargetsManager : public AActor
{
	GENERATED_BODY()
	
public:	
	ATargetsManager();

protected:
	virtual void BeginPlay() override;

public:	
	void Assign_Target(FTargetInfo TargetInfo);
	void Remove_Target(FTargetInfo TargetInfo);
	bool CanAddToTargets(FName TargetInfo);
	int32 FindTargetIndex(FTargetInfo TargetInfo);
public:
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	UBillboardComponent* Visualizer;
	TArray<FTargetInfo> Targets;

};
